main: Factor out sysroot loading
authorDan Nicholson <dbn@endlessos.org>
Tue, 30 Aug 2022 14:38:36 +0000 (08:38 -0600)
committerDan Nicholson <dbn@endlessos.org>
Tue, 30 Aug 2022 14:46:26 +0000 (08:46 -0600)
commite30a3b6b17c89f55c33e7985d11ccae7eb173507
tree8426a6110422f9a95aa8e2dbde4d5af4788e7f3e
parent93a6d7bea2bbbdd61053c99af3a7a2276fdaa234
main: Factor out sysroot loading

It can be useful to parse the options and initialize the sysroot without
actually loading it until later. Factor out the sysroot loading to a new
`ostree_admin_sysroot_load` and add a new
`OSTREE_ADMIN_BUILTIN_FLAG_NO_LOAD` flag to accommodate this.
src/ostree/ot-main.c
src/ostree/ot-main.h